<{include file="app/header.tpl"}>

<div class="order-wrap">

	<div id="buy-address" class="address">
	    <div class="address-list" title="">
	        <p class="one">收货人：<{$order.addrUserName}> <{$order.addrTelNumber}></p>
	        <p class="two"><{$order.addrDetailInfo}></p>
	
	        <p class="two">运送方式: <{$order.deliverName}>(费用: ￥<{$order.moneyDeliver/100|number_format:2}>)</p>
            <p class="two">买家备注: <{$order.commentsUser}></p>
	
	        <{if $order.deliverNo}>
	            <p class="two">快递单号: <{$order.deliverNo}></p>
	        <{/if}>
	
	    </div>
	</div>

	<div class="goods">
	    <{foreach from=$goodsShopList key="shopId" item="gShop"}>
            <a href="/davshop/detail/<{$shopId}>" class="shopName"><{$gShop.shopName}></a>
	    <ul class="goods-items">
	        <{foreach from=$gShop.goods item="goods"}>
	            <li class="li">
	                <div class="left"><img src="<{$goods.thumbsrc}>" class="img" alt=""></div>
	                <div class="middle">
	                    <p class="title"><{$goods.name}></p>
	                    <p class="prompt">
	                        <{if $goods.attr.desc}>
	                            属性：<{$goods.attr.desc}>
	                        <{/if}>
	                    </p>
	                    <p class="number">
	                        价格：￥<{$goods.money.money/100|number_format:2}>
	                        数量：<{$goods.money.quantity}>
	                    </p>
	                    
	            </div>
	            <div class="right">
	                <p class="price">￥<{$goods.money.price/100|number_format:2}></p>
	                <p class="quantity"> x <{$goods.money.quantity}></p>
	            </div>
	
	            </li>
	        <{/foreach}>
	    </ul>
	    <{/foreach}>
	</div>

    

    <div class="order-fee-details">

        <p class="line">下单时间: <{"Y-m-d H:i:s"|@date:$order.created}></p>
        <p class="line">编号: <{$order.orderNo}></p>
        <p class="line">状态: <{$order.statusName}></p>

        <!-- 团购订单 -->
        <{if $order.orderType == 'TUAN' && $order.tuanId > 0 && $order.status > 0}>
        <div class="line fix">
            <span class="left">拼单订单</span>
            <span class="right"><a href="/tuan/detail/<{$order.tuanId}>">查看团购任务</a></span>
        </div>
        <{/if}>



        <div class="line fix">
            <span class="left">共<{$order.countsQuantity}>件商品</span>
            <span class="middle">邮费:<span class="deliverMoney">￥<{$order.moneyDeliver/100|number_format:2}></span>余额抵扣:<span class="coinCostMoney">￥<{$order.moneyCoin/100|number_format:2}></span></span>
            <span class="right">合计:<strong class="orderTotalMoney">￥<{$order.moneyTotal/100|number_format:2}></strong></span>
        </div>

        <{if $order.status == 0}>
            <p class="line"><input onclick="window.location.href='/order/pay/<{$order.orderNo}>'; return false;" class="submitBtn" value="直接付款"></p>
        <{/if}>

    </div>


</div>




<{include file="app/footer.tpl"}>
